package com.zhang.authoritycenter.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Copyright 深圳金雅福控股集团有限公司
 * @Author: zhangfanjun
 * @Date 2021/11/17
 * @Version: 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "base")
public class BaseProperties {

    /**
     * 白名单
     */
    private List<String> ignoreUriList;
    /**
     * size >= 600 bits
     */
    String secret = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz";
    /**
     * token失效时间
     */
    int tokenValidityInSeconds = 24 * 60 * 60;
    /**
     * 记住密码的失效时间
     */
    int tokenValidityInSecondsForRememberMe = 60 * 60 * 24 * 7;
    /**
     * 用户信息缓存时间，单位秒
     */
    int tableCacheTime = 24 * 60 * 60;

}
